package com.zhang.controller;


import com.zhang.service.ScheduledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ScheduledController {

    @Autowired
    private ScheduledService scheduledService;

    @RequestMapping("/sendEmail")
    public String sendEmail() throws Exception {
        scheduledService.email();

        return "ok!";
    }

}




